package handler

import (
	"context"
	"emicro_test/emicro_7/grpc_server/mail/common"
	pb "emicro_test/emicro_7/grpc_server/mail/pbfile"
	"log"
)


type MailHandler struct {
	service *common.EmicroService
}

func (m *MailHandler) TestMail(ctx context.Context, req *pb.TestReq, resp *pb.TestResp) error {
	log.Println("TestMail!!!!!!")
	resp.Msg = "success"
	return nil
}

func NewMailHandler(service *common.EmicroService) *MailHandler{
	handler:= new(MailHandler)
	handler.service = service
	return handler
}



